/**
 * Copyright ? 2015-2035 万雍科技 All Rights Reserved.  
 * File name:      RoleManageService.java
 * Date:           2015-12-21
 * Description:    反馈管理
 * Modify History:     Date             Programmer       Notes
 *                    ---------        ---------------  ---------
 *                    2016-1-7        高振泰                           Initial
 **********************************************************************/
package com.wy.framework.services.feedback;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;

import org.apache.commons.lang.StringUtils;
import org.apache.struts2.ServletActionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.wy.framework.constants.Constants;
import com.wy.framework.constants.FieldConstant;
import com.wy.framework.constants.RtnCodeConstant;
import com.wy.framework.dao.ErrorSqlException;
import com.wy.framework.exceptions.ServiceException;
import com.wy.framework.pojos.TSysOrginfo;
import com.wy.framework.pojos.TSysOrgroles;
import com.wy.framework.pojos.TSysRoleinfo;
import com.wy.framework.pojos.TSysUserinfo;
import com.wy.framework.services.AbstractBaseService;
import com.wy.component.properties.PropertiesUtil;

@Service
public class FeedBackService extends AbstractBaseService {

    private static Logger logger = LoggerFactory.getLogger(FeedBackService.class);

     public List<Map> queryHelpList()throws ServiceException{
    	 String flag = ServletActionContext.getRequest().getParameter("flag");
    	 
    	 List result=new ArrayList();
    	 try {
    		if (StringUtils.equals(flag, null)) {
			  result=dataBaseDao.queryForList("t_market_helpinfo.getList");
    		}else{
    		  result=dataBaseDao.queryForList("t_market_helpinfo.getList2");
    		}
		} catch (ErrorSqlException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    	 return result;
     }
    
	  
    public List<Map> queryHelpInfo(String helpinfoId)throws ServiceException{
    	List result=new ArrayList();
    	try {
			result=dataBaseDao.queryForList("t_market_helpinfo.getInfoById",helpinfoId);
		} catch (ErrorSqlException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
   	   return result;
    }
}
